package com.st.core.entity.exception;

import java.util.Map;

/**
 * @author shent
 */
public class ApplicationRuntimeException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private Map<String, Object> data;

    public ApplicationRuntimeException(String message) {
        super(message);
    }

    public ApplicationRuntimeException(String message, Map<String, Object> data) {
        super(message);
        this.data = data;
    }

    public ApplicationRuntimeException(String message, Map<String, Object> data, Throwable cause) {
        super(message, cause);
        this.data = data;
    }

    public Map<String, Object> getData() {
        return data;
    }
}
